package day0619;

public class Test2 {
    public static void main(String[] args) {
        String[]  []  students={
                {"离","离","原","上","草"},
                {"一","岁","一","枯","荣"},
                {"野","火","烧","不","尽"},
        };

        for(int i=0 ;i <students.length ;i++){ //外循环控制每一行
            for(int j=0; j<students[i].length; j++){//内循环用来控制本行中的每一列
                System.out.print(students[i][j] +" ");
            }
            if(i%2==0){
                System.out.println(",");
            }else{
                System.out.println("。");
            }
        }



    }
}
